//
//  SPResponseCodePrompt.m
//  Sampux
//
//  Created by rzm on 16/9/2.
//  Copyright © 2016年 rzm. All rights reserved.
//

#import "SPResponseCodePrompt.h"

@implementation SPResponseCodePrompt

+ (NSString *)responseCodePrompt:(int)code
{
    NSString *string = [NSString string];
   if (code ==  0x01) {
        string = @"解包错误";
    } else if (code == 0x02)
    {
        string = @"解包错误";
    } else if (code == 0x02)
    {
        string = @"解包错误";
    } else if (code == 0x03)
    {
        string = @"发送错误";
    } else if (code == 0x04)
    {
        string = @"数据库错误";
    } else if (code == 0x05)
    {
        string = @"系统错误";
    } else if (code == 0x06)
    {
        string = @"连接未注册";
    } else if (code == 0x07)
    {
        string = @"用户未登录";
    } else if (code == 0x08)
    {
        string = @"设备未在线";
    } else if (code == 0x20)
    {
        string = @"用户名格式错误";
    } else if (code == 0x22)
    {
        string = @"邮箱格式错误";
    } else if (code == 0x23)
    {
        string = @"手机号格式错误";
    } else if (code == 0x24)
    {
        string = @"校验码格式错误";
    } else if (code == 0x025)
    {
        string = @"用户名密码错误";
    } else if (code == 0x026)
    {
        string = @"用户名错误";
    } else if (code == 0x027)
    {
        string = @"密码错误";
    } else if (code == 0x028)
    {
        string = @"邮箱错误";
    } else if (code == 0x029)
    {
        string = @"手机号错误";
    } else if (code == 0x2A)
    {
        string = @"校验码错误";
    } else if (code == 0x2B)
    {
        string = @"用户名已存在";
    } else if (code == 0x2C)
    {
        string = @"用户名不存在";
    } else if (code == 0x2D)
    {
        string = @"帐号被冻结";
    } else if (code == 0x2E)
    {
        string = @"校验码过期";
    } else if (code == 0x2F)
    {
        string = @"错误次数过多";
    } else if (code == 0x30)
    {
        string = @"当前密码格式错误";
    } else if (code == 0x31)
    {
        string = @"当前密码错误";
    } else if (code == 0x32)
    {
        string = @"修改的密码不能与当前密码一样";
    } else if (code == 0x33)
    {
        string = @"设备已经被认证过了";
    } else if (code == 0x34)
    {
        string = @"设备不存在";
    } else if (code == 0x35)
    {
        string = @"设备已被系统禁用";
    } else if (code == 0x36)
    {
        string = @"设备已经添加";
    } else if (code == 0x37)
    {
        string = @"用户被系统注销";
    }  else if (code == 0x38)
    {
        string = @"不在授权登录时间内";
    }  else if (code == 0xFF)
    {
        string = @"网络错误";
    }
    
    return string;
}
@end
